<!-- 新闻动态的列表 -->
<template>
  <div class="n-news-item clearfix">
    <div class="cover" v-if="item.img">
      <img :src="item.img" alt="">
    </div>
    <div class="desc">
      <div class="title">{{item.title}}</div>
      <p class="content">{{item.content}}</p>
        <!-- <a class="see-detail"><span class="text">查看详情</span><span class="icon-box"><i class="icon"></i></span></a> -->
      <span class="date"><i class="clock"></i>{{item.date}}</span>
    </div>
  </div> 
</template>

<script>
  export default {
    name: 'n-new-item',
    props: {
      item: {
        type: Object
      }
    },
    data() {
      return {}
    }
  }
</script>

<style lang="less">
  @import '~COMMON/common.less';

  .n-news-item {
    text-align: left;
    margin-bottom: 50px;
    .cover {
      float: left;
      margin-right: 30px;
      >img {
        width: 250px;
        height: 180px;
      }
    }
    .desc {
      position: relative;
      display: table;
      height: 180px;
      .title {
        .Mult-line(1);
        font-size: 18px;
        font-weight: bold;
        line-height: 30px;
        color: #333;
      }
      .content {
        .Mult-line(4);
        font-size: 14px;
        line-height: 26px;
        height: 26*4px;
        margin-top: 10px;
        color: #666;
        // margin-bottom: 35px;
      }
      .date {
        .clock {
          display: inline-block;
          vertical-align: bottom;
          width: 16px;
          height: 16px;
          margin-right: 5px;
          background-image: url(~IMGS/clock-icon.png);
          background-size: 100%;
        }
        position: absolute;
        bottom: 0;
        left: 0;
        font-size: 12px;
        color: #999;
      }
    }
  }
</style>